#pragma warning(disable:4996)
#include<stdio.h>
int Seek(int arr[], int sz,int k)
{
	int i = sz - 1;
	while (i && (k != arr[i]))
		i--;
	return i;
}
int main()
{
	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	int k;//k不能为首元素
	scanf("%d", &k);
	int ret = Seek(arr,sz,k);
	if (ret)
		printf("找到该数，下标为%d\n", ret);
	else
		printf("不存在次数!\n");
	return 0;
}